class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :name, null: false
      t.string :title, null: false
      t.index :title
      t.text :context, null: false
      t.text :description   #特别说明
      t.integer :family_id
      t.timestamps

    end
  end
end
